<?php
/**
 * Created by PhpStorm.
 * User: 煌煌
 * Date: 2020/9/2
 * Time: 10:39
 * Email:zenghuang19@163.com
 */

namespace App\Http\Controllers;


use Illuminate\Support\Facades\Redis;

class ContactController extends Controller
{
    private $URL = null;

    public function __construct()
    {
        $this->URL = env('QINIUURL');
    }

    public function index()
    {
        $url = $this->URL;
        $seo = Redis::get('seo');

        $allModel = Redis::get('Info');
        $data['all_model'] = json_decode($allModel, true);

        $data['seo'] = json_decode($seo, true);
        $data['url'] = $url;
        $data['text'] = '联系我们';
        return view('contact.contact', $data);
    }

}
